﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GiaoDienClient/Main.master" AutoEventWireup="true"
    CodeFile="TrangTimMaHS.aspx.cs" Inherits="GiaoDienClient_TrangTimMaHS" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../CSS/C1lient.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPHBody" runat="Server">
    <div style="width: 100%; height: auto; margin: 5px auto auto; border:1px thin blue; ">
     <div style="width: 1004px; height: auto; margin: auto auto; margin-bottom: 10px;">
        <%--<div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc">--%>
                <div class="personal_top_text">
                    Xem thông tin học sinh
                </div>
                <div style="height:712px;width:100%;background-image:url(../images/bg1.jpg);background-repeat: no-repeat;background-position: center center">
                <div style="margin-left:250px; margin-bottom: 5px;">
                    <span style="text-align: center;">
                        <asp:RadioButton runat="server" ID="rdoXemCaNhan" Text="Xem theo mã học sinh" Checked="true"
                            GroupName="grXem" AutoPostBack="True" OnCheckedChanged="rdoXemCaNhan_CheckedChanged" />
                        &nbsp;&nbsp;&nbsp;
                        <asp:RadioButton runat="server" ID="rdoXemtheoTen" Text="Tìm theo tên" 
                        GroupName="grXem" AutoPostBack="True" 
                        oncheckedchanged="rdoXemtheoTen_CheckedChanged" />&nbsp;&nbsp;&nbsp;
                        <asp:RadioButton runat="server" ID="rdoXemTheoLop" Text="Xem danh sách học sinh"
                            GroupName="grXem" AutoPostBack="True" OnCheckedChanged="rdoXemTheoLop_CheckedChanged" />
                            
                    </span>
                </div>
                <asp:MultiView runat="server" ID="mulXemDiem" ActiveViewIndex="0">
                    <asp:View runat="server" ID="viewCaNhan">
                        <div style="border: 1px solid #ccc; width: 500px; padding: 20px auto 20px auto; margin-left: 200px;">
                            <div class="personal_style_form" style="margin-top: 20px;">
                                <span class="personal_laber">Chọn năm học: </span>
                                <asp:DropDownList ID="drNamHoc1" runat="server" Width="150px" CssClass="heighcontrol">
                                </asp:DropDownList>
                            </div>
                            <div class="personal_style_form">
                                <span class="personal_laber"><asp:Label runat="server" ID="lblMaHS" Text="Mã học sinh:"></asp:Label></span>
                                <asp:TextBox runat="server" ID="txtMaHS" Width="150px"></asp:TextBox>
                                <label runat="server" id="lblThongBao" style="color: Red;">
                                </label>
                            </div>
                            <div id="Div1" class="personal_submit clearfix" style="margin-bottom:20px;">
                                <asp:Button runat="server" ID="btnXem" CssClass="button_150" Text="Xem" OnClick="btnXem_Click" />&nbsp;&nbsp;
                            </div>
                            <%--<div class="personal_style_form" style="text-align:center;">
                                
                            </div>--%>
                        </div>
                    </asp:View>
                    <asp:View runat="server" ID="viewDanhSach">
                    <div>
                        <div style="border: 1px solid #ccc; width: 500px; padding: 20px auto 20px auto; margin-left: 200px;">
                            <div class="personal_style_form" style="margin-top:20px;">
                                <span class="personal_laber">Năm học: </span>
                                <asp:DropDownList ID="drNamHoc" runat="server" Width="120px" CssClass="heighcontrol">
                                </asp:DropDownList>
                            </div>
                            <div class="personal_style_form">
                                <span class="personal_laber">Khối học: </span>
                                <asp:DropDownList ID="drKhoiHoc" runat="server" Width="120px" CssClass="heighcontrol"
                                    AutoPostBack="True" OnSelectedIndexChanged="drKhoiHoc_SelectedIndexChanged">
                                </asp:DropDownList>
                            </div>
                            <div class="personal_style_form">
                                <span class="personal_laber">Lớp học: </span>
                                <asp:DropDownList ID="drLopHoc" runat="server" Width="120px" CssClass="heighcontrol"
                                    OnSelectedIndexChanged="drLopHoc_SelectedIndexChanged">
                                </asp:DropDownList>
                            </div>
                            <div id="personalSubmit" class="personal_submit clearfix" style="margin-bottom:20px">
                                <asp:Button runat="server" ID="btnTimKiem" CssClass="button_150" Text="Tìm kiếm"
                                    OnClick="btnTimKiem_Click" />&nbsp;&nbsp;
                            </div>
                        </div>
                       
                        </div>
                    </asp:View>
                </asp:MultiView>
                 <div style="margin-top: 10px;">
                            <asp:GridView ID="grvDSHS" runat="server" AutoGenerateColumns="False" Width="100%"
                                AllowPaging="True" Height="28px" ShowFooter="True">
                                <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" VerticalAlign="Middle" />
                                <Columns>
                                    <asp:TemplateField HeaderText="STT">
                                        <ItemTemplate>
                                            <%# Container.DataItemIndex + 1 %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Mã học sinh" SortExpression="MaHS">
                                        <ItemTemplate>
                                            <asp:Label ID="lblMaHS" runat="server" Text='<%#Bind("MaHS") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Tên học sinh" SortExpression="TenHS">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblTenHS" Text='<%# Bind("TenHS") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Ngày sinh" SortExpression="NgaySinh">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblNgaySinh" Text='<%#String.Format("{0:dd/MM/yyyy}",Eval("NgaySinh")) %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Quê quán" SortExpression="QueQuan">
                                        <ItemTemplate>
                                            <asp:Label runat="server" ID="lblQueQuan" Text='<%# Bind("QueQuan") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Xem điểm">
                                        <ItemTemplate>
                                           <%-- <asp:LinkButton runat="server" ID="lbtXemDiem" Text="Xem điểm" Font-Underline="true"
                                                PostBackUrl='<%#"~/GiaoDienClient/TrangThongTinChiTietDiem.aspx?MaHS="+Eval("MaHS")+"&MaNam="+this.drNamHoc.SelectedValue.ToString()
                                     +"&TenHS="+Eval("TenHS") %>'></asp:LinkButton>--%>
                                     <asp:ImageButton runat="server" ID="imbXemDiem" ImageUrl="~/Icon/next.ico" Height="30px" PostBackUrl='<%#"~/GiaoDienClient/TrangThongTinChiTietDiem.aspx?MaHS="+Eval("MaHS")+"&MaNam="+this.drNamHoc.SelectedValue.ToString()
                                     +"&TenHS="+Eval("TenHS") %>'/>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" />
                                <HeaderStyle BackColor="#9999FF" Font-Bold="True" BorderColor="Blue" Height="30px" />
                            </asp:GridView>
                        </div>
                        </div>
           <%-- </div>

        </div>--%>
       </div>
        
    </div>
</asp:Content>
